package com.zqx.token.repository;


import com.zqx.token.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * title:用户jpa
 * @author zqx
 * @date 2018.07.21
 */
public interface UserRepository extends JpaRepository<User,Long> {

    /**
     * 通过用户名查找用户
     * @param username
     * @return
     */
    User findByUsername(String username);
}
